﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="log.aspx.cs" Inherits="CMS.log" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
<link type="text/css" rel="stylesheet" href="css/login.css" runat="server"/>
<script>
    function isCheck() {
        if (document.getElementById("Stu").checked == true) {
            student.style.display = "block";
            teacher.style.display = "none";
            admin.style.display = "none";
        }
        else if (document.getElementById("Tea").checked == true) {
            student.style.display = "none";
            teacher.style.display = "block";
            admin.style.display = "none";
        }
        else if (document.getElementById("Adm").checked == true) {
            student.style.display = "none";
            teacher.style.display = "none";
            admin.style.display = "block";
        }
    }
    function changeCode(oj) {
        if (oj != null) {
            oj.src = oj.src + "?";
        }
    }
</script>
</head>
<body>
    <form id="login" runat="server">
        
        <div runat="server" id="content">
        <asp:RadioButton ID="Stu" runat="server" Text="学生" Checked="true" CssClass="rb" GroupName="type" onclick="isCheck()"/>
        <asp:RadioButton ID="Tea" runat="server" Text="老师" CssClass="rb" GroupName="type" onclick="isCheck()"/>
        <asp:RadioButton ID="Adm" runat="server" Text="管理员" CssClass="rb" GroupName="type" onclick="isCheck()"/>
        <br />
        <br />

        
        <%-- 
               这是学生登录
        --%>
        <div id="student" runat="server" style="display:block">
        <asp:Label ID="Label1" runat="server" Text="用　户："></asp:Label>
        <asp:TextBox ID="stu_user" runat="server"></asp:TextBox>
        <br />
        <br />
        <asp:Label ID="Label2" runat="server" Text="密　码："></asp:Label>
        <asp:TextBox ID="stu_pwd" runat="server"></asp:TextBox>
        <br />
        <br />
        </div>

        <%-- 
               这是教师登录
         --%>
        <div id="teacher" runat="server" style="display:none">
        <asp:Label ID="Label3" runat="server" Text="用　户："></asp:Label>
        <asp:TextBox ID="tea_user" runat="server"></asp:TextBox>
        <br />
        <br />
        <asp:Label ID="Label4" runat="server" Text="密　码："></asp:Label>
        <asp:TextBox ID="tea_pwd" runat="server"></asp:TextBox>
        <br />
        <br />
        </div>

        <%-- 
               这是管理员登录
         --%>
        <div id="admin" runat="server" style="display:none">
        <asp:Label ID="Label5" runat="server" Text="用　户："></asp:Label>
        <asp:TextBox ID="admin_user" runat="server"></asp:TextBox>
        <br />
        <br />
        <asp:Label ID="Label6" runat="server" Text="密　码："></asp:Label>
        <asp:TextBox ID="admin_pwd" runat="server"></asp:TextBox>
        <br />
        <br />
        </div>

        <asp:Label ID="Label7" runat="server" Text="验证码："></asp:Label>
        <asp:TextBox ID="checkCode" runat="server" Width="50px"></asp:TextBox>
        <img id="img1" alt="" src="checkCode2.aspx" runat="server" onclick="changeCode(this)"/><br />


            <br />
            <asp:ImageButton ID="bt_login" runat="server" ImageUrl="~/images/login.png" OnClick="bt_login_Click" />
            <asp:ImageButton ID="bt_reset" runat="server" ImageUrl="~/images/reset.png" OnClick="bt_reset_Click" />
        </div>
        
    </form>
</body>
</html>
